package com.cysion.study.net

object Urls {
    private var hasInited = false
    var debug: Boolean = true
        set(value) {
            if (!hasInited) {
                field = value
                hasInited = true
            } else {
                throw Exception("不能两次初始化")
            }
        }

    val HOST by lazy {
        if (debug) "http://101.36.180.127:80" else "http://app.51newkey.com:80"//教育测试--正式
    }
    //http://123.58.7.7:9095
    //上传图片
//    val uploadPicture = "http://app.51newkey.com/education/teacher/index/uploadFile"
    val uploadPicture = "http://101.36.180.127/education/teacher/index/uploadFile"

}